﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StsLogin.aspx.cs" Inherits="_StsLogin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Login Page</title>
    <link rel="stylesheet" type="text/css" href="styles\StyleSheet.css" />
    <!--<link rel="stylesheet" type="text/css" href="styles\informationcards.css" />-->
    
    <object type="application/x-informationcard" name="_xmlToken">
        <!--<param name="issuer" value= "http://schemas.xmlsoap.org/ws/2005/05/identity/issuer/self" />-->
        <param name="issuer" value= "http://neptune/STSImplSample/STSImplSample.svc/wst13" />
        <param name="tokenType" value="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1" />
        <param name="requiredClaims" 
            value="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/privatepersonalidentifier
            http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname
            http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" />
    </object>
    
    <script type="text/javascript" src="information_card.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <table class="stsLoginTable" id="Table1" align="center">
            <tr>
                <td class="stsLoginHeader">
                    STS Registry Services
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table id="Table2" style="border-collapse: collapse; width: 190px;">
                        <tr>
                            <td>
                                <div class="stsFont">Username:</div>
                                <asp:TextBox ID="txtUserName" runat="server" Width="96%"></asp:TextBox><br />
                                <div class="stsFont">Password:</div>
                                <asp:TextBox ID="txtPassword" runat="server" Width="96%" TextMode="Password"></asp:TextBox><br />
                                <br />
                                <asp:Button ID="Button1" runat="server" Font-Bold="True" Width="100%" Text="Login"
                                    OnClick="Button1_Click"></asp:Button>
                                <br />or<br />
                                <br />
                                <asp:ImageButton ID="ImageButton1" runat="server"
                                    onmouseover="this.src='imgs/infocard_over.png'" 
                                    onmouseout="this.src='imgs/infocard.png'"
                                    ImageUrl="~/imgs/infocard.png" 
                                    AlternateText="Sign in with your information card." 
                                    onclick="ImageButton1_Click" 
                                    onclientclick="get_information_card()" />
                                <asp:HiddenField ID="XmlTokenField" runat="server"/>
                                <br />or<br /><br />
                                <asp:Button ID="Button2" runat="server" Font-Bold="True" Width="100%" 
                                    Text="Register new user" onclick="Button2_Click"></asp:Button>
                                <br />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
